﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="Scripts/jquery-2.0.3.js"></script>
</head>
<body>
</body>
</html>

<script type="text/javascript">
    function sleep(millisecond) {
        var start = new Date().getTime();

        do {
            var end = new Date().getTime();
        } while (end - start <= millisecond);
    }

    setTimeout(function () {
        console.log("2");
    }, 0);

    console.log("1");

    var block = 3;
    setInterval(function () {
        console.log(block++);
    }, 1000);
</script>
